package com.qf.entity;

import com.qf.utils.MyUtils;

import java.util.Random;

public class Card2 {
    private String id;
    private String name;
    private String id_num;
    private String phone;
    private String password;
    private String id_C1;
    private Integer uid;
    private Double balance;

    public Card2(String id, String name, String id_num, String phone, String password, String id_C1, Integer uid, Double balance) {
        this.id = MyUtils.getRandomNickname(10);
        this.name = name;
        this.id_num = id_num;
        this.phone = phone;
        this.password = password;
        this.id_C1 = id_C1;
        this.uid = uid;
        this.balance = 0.0;
    }

    @Override
    public String toString() {
        return "Card2{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", id_num='" + id_num + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", id_C1='" + id_C1 + '\'' +
                ", uid=" + uid +
                ", balance=" + balance +
                '}';
    }

    public void setId_C1(String id_C1) {
        this.id_C1 = id_C1;
    }

    public String getId_C1() {
        return id_C1;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Card2() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId_num() {
        return id_num;
    }

    public void setId_num(String id_num) {
        this.id_num = id_num;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }


}
